package com.bins.knife4j.service;

import com.bins.knife4j.dto.UserDto;
import com.bins.knife4j.vo.UserVo;
import com.google.common.collect.Lists;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Andybin
 */

@Service
public class UserService {

    public List<UserVo> findUserList() {
        List<UserVo> users = Lists.newArrayList();
        UserVo userInfo = new UserVo();
        userInfo.setUserCode("Andybin");
        userInfo.setUserName("Andybin");
        users.add(userInfo);
        return users;
    }

    public Boolean saveUser(UserDto dto) {
        return Boolean.TRUE;
    }
}
